<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>

<body class="body">
	
	<%@ include file="nav.jsp" %>
	<div class="container">

	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<ul class="nav nav-list">
				  <li class="nav-header">${employeeproject_in_session.project.name }</li>
				  <li class="divider"></li>
				  <li><a href="project.jspx?_m=showProject&projectid=${employeeproject_in_session.projectid }"><i class="icon-white icon-home"></i>最新动态</a></li>

				  <li><a href="goal.jspx"><i class="icon-flag"></i>目标</a></li>

				  <li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>

				  <li><a href="folder.jspx"><i class="icon-file"></i>文件共享</a></li>

				  <li  class="active"><a href="contact.jspx"><i class="icon-user"></i>联系人</a></li>

				  <li><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>

				  <li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
				  <li><a href="#"><i class="icon-cog"></i>项目设置</a></li>
				</ul>
			</div>
		</div>
		<div class="span9">
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0">
				<li class="active">

					<a href="contact.jspx"><i class="icon-user"></i>联系人</a>
				</li>
			</ul>
			<div class="wall">
				<div class="row">
					<div class="span3">
						<a href="contact.jspx?_m=newcontact" class="btn span2"><i class="icon-plus"></i>添加联系人</a>
						<div class="clear"></div>
						
						<c:if test="${fn:length(contactList) == 0 }">
							<tr>
								<td colspan="4">没有任何联系人</td>
							</tr>
						</c:if>
						
						<ul class="unstyled" style="margin-top:15px">
							<c:forEach items="${contactList }" var="c">
								<li style="line-height:30px">
								<i class="icon-list-alt"></i><a href="contact.jspx?_m=showcontact&id=${c.id }">${c.name }</a>
							</li>							
							</c:forEach>
						</ul>
					</div>
					<div class="span5" style="min-height:400px;border-left:1px solid #ccc;padding-left:15px">
						
						<address>
						<img src="img/${contactInfo.id }.png" style="float:right"/>
							<h3> ${contactInfo.name }</h3>
							<p> ${contactInfo.companyname }</p>

							<small>手机</small> ${contactInfo.mobile }<br>
							<small>固话</small> ${contactInfo.tel }<br><br>
							<small>邮箱</small> ${contactInfo.email }<br>
							<small>地址</small> ${contactInfo.address }<br><br>

							<small>主页</small> <a href="${contactInfo.website }">${contactInfo.website }</a><br>
							<small>微博</small> <a href="${contactInfo.weibo }">@${contactInfo.weibo }</a><br>
							
						</address>
						
						<div class="line">记录</div>
						
						<c:forEach items="${cnList }" var="c">
							<blockquote>
							  ${c.content }
							  <small>${c.createtime }</small>
							</blockquote>
						</c:forEach>
						
						
						<a href="contactnote.jspx?_m=showedit&id=${contactInfo.id }">查看所有记录</a>
						<br><br><br>
						<a class="btn btn-primary" href="contactnote.jspx?_m=showedit&id=${contactInfo.id }"><i class="icon-pencil icon-white"></i>编辑</a>
						<a class="btn btn-danger" href="contact.jspx?_m=del&id=${contactInfo.id }"><i class="icon-trash icon-white"></i>删除</a>
					</div>
				</div>

			</div>
			
			
			
		</div>
	  </div>
	</div>

</body></html>